# -*- coding: utf-8 -*-

import xadmin
from .models import Author, AuthorContact

class AuthorAdmin(object):
    list_display = ('author_name',)
    search_fields = ('author_name',)


class AuthorContactAdmin(object):
    list_display = ('author_id', 'contact_name')
    search_fields = ('author_id', 'contact_name')


xadmin.site.register(Author, AuthorAdmin)
xadmin.site.register(AuthorContact, AuthorContactAdmin)